package com.achen.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @author achen
 * @create 2020-04-30 23:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Result implements Serializable {
    private Integer code; //状态
    private String msg;
    private Integer count;
    private List data;

    public Result(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Result(Integer count, List data) {
        this.count = count;
        this.data = data;
    }
}
